<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var height_ = Number(prompt('请输入您的身高'))
    var weight_ = Number(prompt('请输入您的体重'))
    var a = (height_-108)*2
    if(weight_<=(a+10) && weight_>=(a-10)){
        console.log('体重正常')
    }else if(weight_<(a-10)){
        console.log('你太瘦了，多吃点')
    }else if(weight_>(a+10)){
        console.log('胖子，还吃')
    }else{
        console.log('请输入数字')
    }
</script>
</html>